#!/bin/sh

funarr=("|" "*" "-")
funarr=("|" "*" "+")
funarr=("|" "+" "-")

function loop2Compute() {
    for op1 in ${funarr[@]}
    do
        echo "op1 = $op1"
        for op2 in ${funarr[@]}
        do
            echo "  op2 = $op2"
            for op3 in ${funarr[@]}
            do
                echo "    op3 = $op3"
                for op4 in ${funarr[@]}
                do
                    for op5 in ${funarr[@]}
                    do
                        for op6 in ${funarr[@]}
                        do
                            for op7 in ${funarr[@]}
                            do
                                for op8 in ${funarr[@]}
                                do
                                    jisuan="1${op1}2${op2}3${op3}4${op4}5${op5}6${op6}7${op7}8${op8}9${op9}"
                                    jisuan=$(echo "$jisuan"|sed 's/|//g')
			                        res=$(($jisuan))

			                        #echo "$jisuan = $res"
                                    if [ $res -ge 100 ]
                                    then
                                        #echo "$jisuan = $res"
                                        if [ $res -le 100 ]
                                        then
                                            echo "$jisuan = $res"
                                        fi
                                    fi
                                done
                            done
                        done
                    done
                done
            done
        done
    done
}

loop2Compute